package YourSpaceDB::Photos;
# $WCREV WVDATE$
use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('photos');
__PACKAGE__->add_columns(qw/ 
photo_id
user_id
photo_path
is_main_photo
album_name
 /);

__PACKAGE__->set_primary_key('photo_id');
__PACKAGE__->belongs_to( user => "YourSpaceDB::User", "user_id" );

1;